from django.db import models


class Users(models.Model):
    userId = models.IntegerField(db_column='userId', primary_key=True,
                                 verbose_name='用户编号')
    sexy = models.CharField(max_length=2, blank=True, null=True, verbose_name='用户性别')
    birthday = models.DateField(blank=True, null=True, verbose_name='用户生日')
    phone = models.CharField(max_length=20, verbose_name='用户电话')
    password = models.CharField(max_length=32, verbose_name='用户密码')
    email = models.CharField(max_length=30, blank=True, null=True, verbose_name='用户邮箱')

    class Meta:
        managed = False
        db_table = 'users'
        verbose_name = '用户'
        verbose_name_plural = verbose_name











